using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

public class ClassA : InterfaceA
{
    public int Method(int n)
    {
        int sum = 0;
        for (int i = 1; i <= n; i++)
        {
            sum += i;
        }
        return sum;
    }
}
